package com.limh.gobang.base;

import android.app.Application;
import android.os.Build;
import android.os.StrictMode;

import com.bolex.autoEx.AutoEx;

import java.lang.reflect.Method;

/**
 * @author limh
 * @function
 * @date 2018/4/28 17:32
 */
public class App extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        if(Build.VERSION.SDK_INT>=24){
            try{
                Method m = StrictMode.class.getMethod("disableDeathOnFileUriExposure");
                m.invoke(null);
            }catch(Exception e){
                e.printStackTrace();
            }
        }
        /**
         * bug自理
         */
        AutoEx.apply(this);
    }
}
